//===============================================================================
// Microsoft patterns & practices Enterprise Library Contribution
// Policy Injection Application Block
//===============================================================================

using System;
using Microsoft.Practices.EnterpriseLibrary.Configuration.Design;

namespace EntLibContrib.PolicyInjection.CallHandlers.Configuration.Design
{
	/// <summary>
	/// A <see cref="ConfigurationDesignManager"/> that registers the
	/// commands and node maps for the Policy Injection Block configuration.
	/// </summary>
	public class PolicyInjectionCallHandlersConfigurationDesignManager : ConfigurationDesignManager
	{
		#region Public Methods
		/// <summary>
		/// When overridden by a class, Register any mechanisms needed for the design manager into the design time.
		/// </summary>
		/// <param name="serviceProvider">The a mechanism for retrieving a service object; that is, an object that provides custom support to other objects.</param>
		public override void Register(IServiceProvider serviceProvider)
		{
			new PolicyInjectionCallHandlersCommandRegistrar(serviceProvider).Register();
			new PolicyInjectionCallHandlersNodeMapRegistrar(serviceProvider).Register();
		}
		#endregion
	}
}
